Skip to content

Conversation

@vnarapar
Copy link
Contributor

@vnarapar vnarapar commented Nov 7, 2025

Added individual test definitions for Kernel tests to run tests individually in LAVA

@vnarapar vnarapar requested a review from smuppand November 7, 2025 07:18
@vnarapar vnarapar force-pushed the script_test_definitions branch from d835a6e to 6ceb696 Compare November 7, 2025 07:33
@smuppand smuppand requested a review from mwasilew November 12, 2025 15:25
Copy link
Contributor

@mwasilew mwasilew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update names and descriptions for each test. I only left a comment in one case.

The other issue is lack of parameters for scripts that take them. I took a quick look and found one example: wpss_remoteproc. There are probably more.

metadata:
format: Lava-Test Test Definition 1.0
name: AUSanity
description: "Baseline AU Sanity test plan"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the name and description to correspond with what the test script does.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated for all tests

- lemans evk
- monaco evk

run:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked the script and it takes parameters. There are no parameters in the yaml file. This means that the script runs with defaults always. It would be better to provide the defaults as input in the yaml test-definition.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this script is accepting environmental variables, added export first

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not what I asked for. These variables should be possible to define at the test job level. Without defining variables in test-definition and using these variables in script call this is not possible. Here is an example how it should be done:

@vnarapar vnarapar force-pushed the script_test_definitions branch from 6ceb696 to b0895de Compare November 20, 2025 05:19
Added individual test definitions for Kernel tests to run tests
individually in LAVA

Signed-off-by: Vamsee Narapareddi <vnarapar@qti.qualcomm.com>
@vnarapar vnarapar force-pushed the script_test_definitions branch from b0895de to 3de70d5 Compare November 20, 2025 05:29
@vnarapar vnarapar requested a review from mwasilew November 20, 2025 05:31
Copy link
Contributor

@mwasilew mwasilew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is better, but there is still quite a lot improvements required. You can use the validate.py script to check if the metadata is not violating some rules:
https://github.com/Linaro/test-definitions/blob/master/validate.py

- lemans evk
- monaco evk

run:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not what I asked for. These variables should be possible to define at the test job level. Without defining variables in test-definition and using these variables in script call this is not possible. Here is an example how it should be done:

@@ -0,0 +1,21 @@
metadata:
format: Lava-Test Test Definition 1.0
name: BWMON test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC LAVA doesn't allow spaces in this field.

metadata:
format: Lava-Test Test Definition 1.0
name: BWMON test
description: "Test to check if cpu votes are incremented"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is step in a good direction, but it would be ideal to describe in detail how the test works. Once this is done, documentation can be generated from this field. Example here:
https://test-definitions.readthedocs.io/en/latest/automated/linux/docker/docker.html

@mwasilew
Copy link
Contributor

@vnarapar I pushed my version to #207. There are 2 test-definitions missing: v4l2 and kselftest. v4l2 has a lot of options and I don't know which are used and importand. As for kselftest, there already is a test-definition for it here: https://github.com/Linaro/test-definitions/tree/master/automated/linux/kselftest. There is no point duplicating the work.

@smuppand
Copy link
Contributor

@vnarapar Would you like to close this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants